package com.bcu.wish.service.impl;

import com.bcu.wish.service.WordService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bcu.wish.mapper.WordMapper;
import com.bcu.wish.entity.Word;

@Service("ownWordServiceImpl")
public class WordServiceImpl implements WordService {

    @Resource
    private WordMapper wordMapper;

    @Override
    public int deleteByPrimaryKey(Integer wordId) {
        return wordMapper.deleteByPrimaryKey(wordId);
    }

    @Override
    public int insert(Word record) {
        return wordMapper.insert(record);
    }

    @Override
    public int insertSelective(Word record) {
        return wordMapper.insertSelective(record);
    }

    @Override
    public Word selectByPrimaryKey(Integer wordId) {
        return wordMapper.selectByPrimaryKey(wordId);
    }

    @Override
    public int updateByPrimaryKeySelective(Word record) {
        return wordMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Word record) {
        return wordMapper.updateByPrimaryKey(record);
    }

}
